<%@ page language="java" pageEncoding="ISO-8859-1"%>
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>

<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
	<link rel="stylesheet" type="text/css" href="css/base.css" />
	<base href="<%=basePath%>">

	<title>Editar precio</title>
	
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->

</head>
  
<body>
	<f:view>
		<h:form id="editarForm">			
			<h1>Editar precio</h1>
			
			<h:message for="editarForm" errorClass="error" />							
			<h:panelGrid border="1" columns="3">
				<h:outputText value="Desde"/>
				<h:inputText id="rangoDesde" value="#{administrarPrecioDeVuelo.rangoDesde}" required="true" size="20" maxlength="20">
					<f:validateLongRange minimum="0"/>
				</h:inputText>                
				<h:message for="rangoDesde" errorClass="error" />
				
				<h:outputText value="Hasta"/>
				<h:inputText id="rangoHasta" value="#{administrarPrecioDeVuelo.rangoHasta}" required="true" size="20" maxlength="20"/>                
				<h:message for="rangoHasta" errorClass="error" />
				
				<h:outputText value="Monto" />
				<h:inputText id="monto" value="#{administrarPrecioDeVuelo.monto}" required="true" size="20" maxlength="20">
					<f:validateDoubleRange minimum="0" />
				</h:inputText>					
				
				<h:message for="monto" errorClass="error" />
			</h:panelGrid>
			<br>
			<h:panelGroup>
				<h:commandButton value="Guardar" action="#{administrarPrecioDeVuelo.guardar}"/>
				<h:commandButton value="Cancelar" action="#{administrarPrecioDeVuelo.listar}" immediate="true" />
			</h:panelGroup>
			</h:form>
	</f:view>
</body>
</html>